import Layout from '@/layout'

export default [
  {
    path: '/user',
    component: Layout,
    redirect: '/user/index',
    name: 'user',
    meta: { title: '用户管理', icon: 'example', roles: ['*', '用户'] },
    children: [
      {
        path: 'user',
        name: 'user-index',
        component: () => import('@/views/manager/user/index'),
        meta: { title: '用户管理', icon: 'form' }
      },
      {
        path: 'create',
        name: 'user-create',
        component: () => import('@/views/manager/user/create'),
        meta: { title: '创建用户', icon: 'form' }
      },
      {
        path: 'edit/:id',
        name: 'user-edit',
        hidden: true,
        component: () => import('@/views/manager/user/edit'),
        meta: { title: '编辑用户', icon: 'form' }
      }

    ]
  }
]
